package com.vains.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author vains
 * @since 2021-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OauthPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer permissionId;

    /**
     * 资源名称
     */
    private String permissionName;

    /**
     * 资源路径(当资源是权限是就是接口地址，当是菜单栏时是页面地址)
     */
    private String permissionUrl;

    /**
     * 父节点
     */
    private Integer permissionParentId;

    /**
     * 0-导航栏  1-按钮  2-其他
     */
    private Integer permissionType;

    /**
     * 是否删除
     */
    private Boolean permissionDeleted;

    /**
     * 是否需要权限
     */
    private Boolean permissionAuthorization;

    /**
     * 图标
     */
    private String permissionIcon;


}
